<?php

declare(strict_types=1);

namespace App\Helper;
use Hyperf\Context\Context;
use Psr\Http\Message\ServerRequestInterface;
use Hyperf\DbConnection\Db;
class Verify
{
    /**
     * 验证手机格式
     * [phoneFormat description]
     * @param  [type] $phone [description]
     * @return [type]        [description]
     */
    public static function phoneFormat($phone)
    {
        if (preg_match("/^(13|14|15|16|17|18|19)[0-9]{9}$/", $phone)) {
            return true;
        } else {
            return false;
        }
    }
}
